<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>

    <title>支出明细列表</title>
    <jsp:include page="/static/common/easyui_header.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/views/payment.js"></script>
</head>
<body>

<table id="payment_datagrid" class="easyui-datagrid" pagination="true"
        data-options="rownumbers:true,singleSelect:true,url:'/payment/list',fit:'true',border:'false',
        fitColumns:'true',method:'post',toolbar:'#payment_datagrid_toolbar'">
    <thead >
    <tr >
        <th data-options="field:'ck',checkbox:true"></th>
        <th data-options="field:'payclassify',align:'center',width:'100px',formatter:formatClassifyName">支出分类</th>
        <th data-options="field:'amount',align:'center',width:'100px'">支出金额</th>
        <th data-options="field:'inputTime',align:'center',width:'200px'">支出时间</th>
        <th data-options="field:'employee',align:'center',width:'200px',formatter:formatEmployeeName">支出人员</th>
        <th data-options="field:'remake',align:'center',width:'200px'">备注</th>
    </tr>
    </thead>
</table>

    <div id="payment_dialog" class="easyui-dialog" title="新增"
         data-options="resizable:true,modal:true,closed:true,buttons:'#payment_form_buttons'">
        <form id="payment_add_form" class="easyui-form" method="post" title="">
            <input name="id" type="hidden" id="payment_id">
            <table>
                <tr>
                    <td>费用类别
                        <select id="a" class="easyui-combobox" name="payclassify.id" style="width:160px;"
                                data-options="valueField:'id',textField:'name',url:'/payclassify/listAll'">
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>支出金额<input name="amount" class="easyui-textbox"></td>
                </tr>
                <tr>
                    <td>支付日期<input name="inputTime" class="easyui-datebox"></td>
                </tr>
                <tr>
                    <td>支出人员
                        <input id="b" class="easyui-combobox" name="employee.id"
                               data-options="valueField:'id',textField:'name',url:'/employee/listAll'" />
                    </td>
                </tr>
                <tr>
                    <td>备&emsp;&emsp;注<input name="remake" class="easyui-textbox"></td>
                </tr>
            </table>
        </form>
    </div>
    <!--底部按钮-->
    <div id="payment_form_buttons" style="float:right">
        <a href="javascript:;" class="easyui-linkbutton" data-cmd="save">保存</a>
        <a href="javascript:;" class="easyui-linkbutton" data-cmd="cancel">关闭</a>
    </div>
    <!--工具栏(左侧)-->
    <div id="payment_datagrid_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add" plain="true" data-cmd="addPayment">支出录入</a>
        <a class="easyui-linkbutton" iconCls="icon-tip" plain="true" data-cmd="exportPayment" style="margin-left:20px">导出</a>
        <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="editPayment" style="margin-left:20px">修改</a>
        <a class="easyui-linkbutton" iconCls="icon-remove" plain="true" data-cmd="deletePayment" style="margin-left:20px">删除</a>
        <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reloadPayment" style="margin-left:20px">刷新</a>
        <input class="easyui-datebox" id="keytime" style="margin-left:20px"></input>
        <%--<a style="margin-left:20px">总支出为&emsp;<span style="color: red;font-size: large">${allAmount}</span></a>--%>
        <a class="easyui-linkbutton" iconCls="icon-search" plain="true" data-cmd="searchPayment" style="margin-left:200px">查询</a>
    </div>
${allAmount1}111
</body>
</html>
